<script setup>
import {onMounted, reactive, ref} from 'vue'
import Recommend from '../components/VideoTab/Recommend.vue'
import {useRouter,useRoute} from 'vue-router'
const router = useRouter()
const route = useRoute()
const active = ref(0)
const data = reactive({
    tab:[
        {
            id:0,
            text:"推荐",

        },
        {
            id:1067226,
            text:"预告片",

        },
        {
            id:1331498,
            text:"热片解读",

        },
        {
            id:1074953,
            text:"说电影",

        },
        {
            id:1307354,
            text:"娱乐",
        }
    ]
})
</script>
<template>
    <div class="video">
        <van-tabs v-model:active="active">
        <van-tab 
        v-for="item in data.tab" :key="item.id" :title="item.text"
        :to="{path:'/video',query:{videoType:item.id}}"
        >
        </van-tab>
        </van-tabs>
        <Recommend></Recommend>
    </div>
</template>